<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.5/dist/css/layui.css">
    <!-- 引入 layui.js -->
    <script src="//unpkg.com/layui@2.6.5/dist/layui.js"></script>
</head>
<body>
    <div>
        hello,<span th:text="${username}">你的名字</span>
        <button class="layui-btn layui-btn-radius layui-btn-normal">百搭按钮</button>
    </div>
    <div>
        <ul>
            <li th:each="c : ${categoryList}">
                <th:block th:text="${c.cname}"></th:block>
            </li>
        </ul>

        <select>
            <option th:each="c : ${categoryList}" th:value="${c.cid}">
                <th:block th:text="${c.cname}"></th:block>
            </option>
        </select>

        <form action="/register">
            <input name="username">
            <input name="password">
            <input th:type="submit" th:value="注册">
        </form>
    </div>
</body>
</html>